package com.netease.d;

import android.content.ContentResolver;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import com.netease.pris.provider.ae;

public class c
{
  static Context a;
  static c b = null;
  static final String[] c;
  static final int d = 0;
  static final int e = 1;
  static final int f = 2;

  static
  {
    String[] arrayOfString = new String[3];
    arrayOfString[0] = "name";
    arrayOfString[1] = "value";
    arrayOfString[2] = "type";
    c = arrayOfString;
  }

  public static c a()
  {
    if (b == null)
      b = new c();
    return b;
  }

  public static void a(Context paramContext)
  {
    a = paramContext;
  }

  public void a(String paramString1, String paramString2)
  {
    String str = "group_name = '" + paramString1 + "' AND " + "name" + " = '" + paramString2 + "'";
    a.getContentResolver().delete(ae.f, str, null);
  }

  public void a(String paramString1, String paramString2, String paramString3)
  {
    ContentValues localContentValues = new ContentValues();
    localContentValues.put("group_name", paramString1);
    localContentValues.put("name", paramString2);
    localContentValues.put("value", paramString3);
    a.getContentResolver().insert(ae.f, localContentValues);
  }

  public String b(String paramString1, String paramString2, String paramString3)
  {
    String str = "group_name = '" + paramString1 + "' AND " + "name" + " = '" + paramString2 + "'";
    Cursor localCursor = a.getContentResolver().query(ae.f, c, str, null, null);
    if ((localCursor != null) && (localCursor.moveToFirst()))
      paramString3 = localCursor.getString(1);
    if (localCursor != null)
      localCursor.close();
    return paramString3;
  }
}

/* Location:           D:\android\hack\dex2jar-0.0.9.8\classes_dex2jar.jar
 * Qualified Name:     com.netease.d.c
 * JD-Core Version:    0.6.0
 */